#!/bin/bash

# check system 
if [ -z "`lsb_release -a | grep CentOS`"];then
    echo "error, you must execute this script on CentOS system!"
    exit 0; 
fi

# config git
yum -y install git 
git clone https://gitee.com/youclk/auto-config.git ~/.auto-config && cd ~/.auto-config

if [ ! $? -eq 0 ]; then 
    echo "sorry, git clone error, I must exit."
    exit 0; 
fi
./tools/startup.sh